package com.bmob.lover.ui.activity

import android.os.Bundle
import com.bumptech.glide.Glide
import com.qmuiteam.qmui.arch.annotation.DefaultFirstFragment
import com.bmob.lover.data.constant.DEFAULT_DYNAMIC_BG
import com.bmob.lover.data.constant.DEFAULT_LAUNCHER_BG
import com.bmob.lover.ui.fragment.user.LoginFragment
import com.theone.mvvm.base.activity.BaseFragmentActivity


@DefaultFirstFragment(LoginFragment::class)
class LoginRegisterActivity: BaseFragmentActivity(){

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        // 预加载两张默认图片
        Glide.with(this).load(DEFAULT_LAUNCHER_BG).preload()
        Glide.with(this).load(DEFAULT_DYNAMIC_BG).preload()
    }
}